import { ApiResult, post, get } from "@/util/request";

export async function trainingInfoList(params?: any): Promise<ApiResult<any>> {
  return await post<any>("/manage/v1/trainingInfo/list", params);
}

export async function audit(params?: any): Promise<ApiResult<any>> {
  return await post<any>("/manage/v1/trainingInfo/audit", params);
}

export async function complete(params?: any): Promise<ApiResult<any>> {
  return await post<any>("/manage/v1/trainingInfo/complete", params);
}

export async function getTrainingInfoWaitById(params?: any): Promise<ApiResult<any>> {
  return await get<any>(`/manage/v1/trainingInfo/getTrainingInfoWait/id/`,params);
}

export async function selectMiniTranUsers(params?: any): Promise<ApiResult<any>> {
  return await get<any>(`/mini/v1/trainingInfo/selectMiniTranUsers`,params);
}

export async function selectSysDictDataParentOrChilderById(id?: any): Promise<ApiResult<any>> {
  return await get<any>(`/manage/v1/sysDict/selectSysDictDataParentOrChilderById/${id}`);
}




